//
//  YTAboutController.m
//  yitaicaijing
//
//  Created by DIANGHONG on 2018/7/30.
//  Copyright © 2018年 DIANGHONG. All rights reserved.
//

#import "YTAboutController.h"

@interface YTAboutController ()
@property (weak, nonatomic) IBOutlet UILabel *advLabel;
@property (weak, nonatomic) IBOutlet UILabel *mediaLabel;
@property (weak, nonatomic) IBOutlet UILabel *marketLabel;

@end

@implementation YTAboutController

// 广告合作 复制
- (IBAction)advCopyBtnClick
{
    
    [self copyStringToPasteBoard:@"17318072397"];

}

// 市场合作 复制
- (IBAction)marketBtnCopyClick:(UIButton *)sender
{
    [self copyStringToPasteBoard:@"17318072397"];
}

// 媒体合作 复制
- (IBAction)mediaBtnCopyClick
{
    [self copyStringToPasteBoard:@"13207497695"];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"倛袨1"] style:UIBarButtonItemStylePlain target:self action:@selector(backButtonClick)];
    
    [self.navigationItem.leftBarButtonItem setTintColor:kBackButtonColor];
    
}

// 返回按钮
- (void)backButtonClick
{
    [self.navigationController popViewControllerAnimated:true];
}




- (void)copyStringToPasteBoard:(NSString *)str
{
    UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
    pasteboard.string = str;
    
    [self.view showTipWithTipStr:@"复制成功"];
}


@end
